import { defineStore } from "pinia";

export const useAlertsStore = defineStore('alerts', {
    state: () => ({ count: 0, name: '嘿嘿' }),
    actions: {
        increment() {
            this.count ++
        }
    },
    getters: {
        doubleCount: (state) => {
            return state.count * 2
        },
        doublePlusOne: () => {
            return this.doubleCount + 1
        }
    }
})
